;(function(){
    var head=document.getElementsByTagName("head")[0]
    var body=document.getElementsByTagName("body")[0]
    function creatImg(){
    var img=document.createElement("link")
    img.setAttribute("href","img/favicon.ico")
    img.setAttribute("type","image/x-icon")
    img.setAttribute("rel","shortcut icon")
    head.appendChild(img)
    }
    function creatCss(url){
        var css=document.createElement("link")
        css.setAttribute("href",url)
        css.setAttribute("rel","stylesheet")
        head.appendChild(css)
    }
    // function creatArt(url){
    //     var art=document.createElement("script")
    //     art.setAttribute("src",url)
    //     body.appendChild(art)
    // }
    function creatButton(url){
       var button=document.createElement("link")
       button.setAttribute("href",url)
       button.setAttribute("rel","stylesheet")
       head.appendChild(button)
    }
    creatButton("css/buttons.css")
    // creatArt("js/art-template.js")
    creatCss("css/normalize.css")
    creatImg()
})();